/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.paris5.master2.guitarmaster.bean;

import java.util.Date;

/**
 *
 * @author mourad
 */
public class EcomCart implements EcomBean {
    private Boolean status;
    private Float amount;
    private Integer quantity;
    private Date dateUp;
    private Date dateCrea;
    private EcomUser user;
    private EcomProduct product;

    public EcomCart() {
    }
    

    public Float getAmount() {
        return amount;
    }

    public Date getDateCrea() {
        return dateCrea;
    }

    public Date getDateUp() {
        return dateUp;
    }

    public EcomProduct getProduct() {
        return product;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public Boolean getStatus() {
        return status;
    }

    public EcomUser getUser() {
        return user;
    }

    public void setAmount(Float amount) {
        this.amount = amount;
    }

    public void setDateCrea(Date dateCrea) {
        this.dateCrea = dateCrea;
    }

    public void setDateUp(Date dateUp) {
        this.dateUp = dateUp;
    }

    public void setProduct(EcomProduct product) {
        this.product = product;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public void setUser(EcomUser user) {
        this.user = user;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final EcomCart other = (EcomCart) obj;
        if (this.status != other.status && (this.status == null || !this.status.equals(other.status))) {
            return false;
        }
        if (this.amount != other.amount && (this.amount == null || !this.amount.equals(other.amount))) {
            return false;
        }
        if (this.quantity != other.quantity && (this.quantity == null || !this.quantity.equals(other.quantity))) {
            return false;
        }
        if (this.dateUp != other.dateUp && (this.dateUp == null || !this.dateUp.equals(other.dateUp))) {
            return false;
        }
        if (this.dateCrea != other.dateCrea && (this.dateCrea == null || !this.dateCrea.equals(other.dateCrea))) {
            return false;
        }
        if (this.user != other.user && (this.user == null || !this.user.equals(other.user))) {
            return false;
        }
        if (this.product != other.product && (this.product == null || !this.product.equals(other.product))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Cart{" + "status=" + status + ", amount=" + amount + ", quantity=" + quantity + ", dateUp=" + dateUp + ", dateCrea=" + dateCrea + ", user=" + user + ", product=" + product + '}';
    }
}
